//
//  SSCleanDetailFirstPartView.swift
//  拾舍清洁
//
//  Created by sky.wei on 2023/2/14.
//

import UIKit

class SSCleanDetailFirstPartView: UIView {
    

    
    @IBOutlet weak var nameLab: UILabel!
    @IBOutlet weak var feeView: UIView!
    
    class func firstPartView()->SSCleanDetailFirstPartView{
        return Bundle.main.loadNibNamed("SSCleanDetailFirstPartView", owner: nil, options: nil)?.last as! SSCleanDetailFirstPartView
    }
   
    override init(frame: CGRect) {
        super.init(frame: frame)
    }
    
    required init?(coder: NSCoder) {
        super.init(coder: coder)
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        feeView.layer.cornerRadius = 10
        feeView.layer.masksToBounds = true

    }
    
    func setType(type:Int)  {
        if type == 1 {
            nameLab.text = "日常清洁"
        }else if (type == 3){
            nameLab.text = "深度清洁"
        }else if (type == 4){
            nameLab.text = "蒸汽地毯"
        }
    }
    
    
}
